package kieper.rpcgen;

import java.util.List;

public class ParseException extends RuntimeException {
    private List<ValidationError> validationErrors;

    public ParseException() {
    }

    public ParseException(String message) {
        super(message);
    }

    public ParseException(String message, Throwable cause) {
        super(message, cause);
    }

    public ParseException(Throwable cause) {
        super(cause);
    }

    public ParseException(List<ValidationError> validationErrors) {
        this.validationErrors = validationErrors;
    }

    public ParseException(String message, List<ValidationError> validationErrors) {
        super(message);
        this.validationErrors = validationErrors;
    }

    public ParseException(String message, Throwable cause,
                          List<ValidationError> validationErrors) {
        super(message, cause);
        this.validationErrors = validationErrors;
    }

    public ParseException(Throwable cause, List<ValidationError> validationErrors) {
        super(cause);
        this.validationErrors = validationErrors;
    }

    public List<ValidationError> getValidationErrors() {
        return validationErrors;
    }
}
